package com.wyh.domain.po.gfive;



import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;

import java.io.Serializable;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

/**
* 角色表
* @TableName role
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Role implements Serializable {

    /**
    *
    */
    @NotNull(message="[]不能为空")
    @ApiModelProperty("角色ID")
    private Integer id;
    /**
    * 名称
    */
    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("名称")
    @Length(max= 255,message="编码长度不能超过255")
    private String name;
    /**
    * 状态
    */
    @ApiModelProperty("状态")
    private Integer state;



}
